/*    */ package com.zimbra.cs.store;
/*    */ 
/*    */ import java.io.IOException;
/*    */ import java.io.OutputStream;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class BlobBuilderOutputStream
/*    */   extends OutputStream
/*    */ {
/*    */   protected BlobBuilder blobBuilder;
/*    */   
/*    */   protected BlobBuilderOutputStream(BlobBuilder blobBuilder)
/*    */   {
/* 31 */     this.blobBuilder = blobBuilder;
/*    */   }
/*    */   
/*    */   public void write(int b)
/*    */     throws IOException
/*    */   {
/* 37 */     byte[] tmp = new byte[1];
/* 38 */     tmp[0] = ((byte)b);
/* 39 */     write(tmp);
/*    */   }
/*    */   
/*    */   public void write(byte[] b, int off, int len) throws IOException
/*    */   {
/* 44 */     this.blobBuilder.append(b, off, len);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/store/BlobBuilderOutputStream.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */